// Initializes the `content_wz` service on path `/content-wz`
const { ContentWz } = require('./content_wz.class');
const createModel = require('../../models/content_wz.model');
const hooks = require('./content_wz.hooks');

module.exports = function (app) {
  const options = {
    Model: createModel(app),
    paginate: app.get('paginate')
  };

  // Initialize our service with any options it requires
  app.use('/content-wz', new ContentWz(options, app));

  // Get our initialized service so that we can register hooks
  const service = app.service('content-wz');

  service.hooks(hooks);
};
